package com.hh.controller;

import com.hh.commonutils.Result;
import com.hh.service.MsmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/msm")

public class MsmController {
    @Autowired
    private MsmService msmService;

    @GetMapping("/sendMsg/{phone}")
    public Result sendMeg(@PathVariable String phone) {
        Boolean result = msmService.sendMsg(phone);
        if (result){
            return Result.success();
        } else {
            return Result.fail();
        }
    }
}
